Fix loading base64 encoded jpgs