Remove some tests from image.py