removed more redundant logic from ImgOp