Simple way to generate base64 encoding from image