changed where indexed color is processed
fixed interlaced indexed color image layout