Be pedantic about heaps allocation
Use old jpeg_encoder_encode API
Set APP_ORIENTATION to 0