Fix loading of base64 encoded jpgs