added color map index checking in non-RLE images