mapImage() improvements