code indentation reformatted
added test cases.

added 8bit images with greyscale and alpha channels for file format reading test
corrected two return values whether format is supported by reading the context