Fix indexed support. Change grayscale support with QImage::Format_Indexed8 to save memory
Merge pull request #4 from yuezhao/master

Fix indexed support