1) Renamed the members variables to adhere to the GNU coding standard.
2) Added an image_type, characterizing images and layers.