Refactoring for *ImagePixels classes