operations: fix an iterator access flag in image-compare