Fixed issue #20

Fixed issue #20 (IOError "cannot identify image file" in pil_engine)