public static function ResizeAndUploadImage($width, $height, $uploadedFilePath, $extension = "jpg", $saveImagePath)
 {
     //Create object of imaging
     $imaging = new Imaging();
     //Get image dimension
     $dimension = new Dimension($width, $height);
     //Load image
     $imaging->loadImage($uploadedFilePath);
     //resize image to the dimesion required
     $imaging->resizeImage($dimension);
     //Set image path
     $imaging->setImagePath($uploadedFilePath);
     //Save image
     $imaging->saveImage($saveImagePath . "." . $extension);
     //Set output format
     $imaging->setOutputFormat($extension);
 }