async function downscaleImage33(dataUrl, imageType, imageArguments) {
let formSettingObject = await getFormSettingObject();
let allowOriginalImgSize = formSettingObject.is_allow_original_file_size;
// check if from form setting if allow_original image size
if (allowOriginalImgSize) {
return dataUrl;
}
var image, canvas, ctx, newDataUrl;
var file = dataURLtoBlob(dataUrl);
var size = file.size;
var sizeKB = size/1000;
var fileReader = new FileReader();