ImgToBase64 code

ImgToBase64 code