Base classes to implement images.