fixed tests with image processing