ignore errors on incorrect jpeg file. Fixes #501