converted image uploading to base64encode