Merge pull request #3 from yuezhao/master

Add: Support RGB mode with 4 channels, seems still with problems
Added Grayscale support

Also added Indexed support but not working properly as expected.
Fix indexed support. Change grayscale support with QImage::Format_Indexed8 to save memory