new method to generate raw base64 image data