Added support for one byte per pixel images.