private fun resizeBitmapImageFun(tempBitmap: Bitmap): Bitmap { var newWidth = tempBitmap.width var newHeight = tempBitmap.height var rate: Fl