Fixed another bug in image tests