JPEG improvements