A Python class to work with RGB and Grey image types