Added JPGEncoderWorker code, removed IMGEncoder.as