working on encoding base64 encoded images to 'image urls'