Testing operations on an image