Changed the way base64 image is loaded