JRH: Base64 encoding for image