better JPEG quality and interlacing fix