encodingType set to JPEG and correctOrientation to true to fix the rotation issue on some devices