convert image to 64 encode