Attempting to implement MegaPixImage.