A low complexity image compression algorithm for IoT multimedia applications