Refactr: jpegDecoder in progress