A little more efficient ImageMasked now inheriting from the template class.