Fix base64 encoded JPEGs