Fix #340 - Bug: Pillow validates file before the configured engine