A basic JPEG image compressor