[freeimage tests] Add a test w/ truncated image

This tests tests the fix in the previous commit b9a7445, covering the
issue noted in issue #1037.
[test_freeimage.py] remove extraneous statements