converted image uploading to base64encode v2.0