removed redundant logic in ImgOp