Change code over to use ImageIO classes and create simple base class for consistent setup.