PAM to JPEG Converter