Fixing image data URL