'cmap' - correct stride interpreting CMP,MTYP,PCOL

Fix for number of components different from 3
Merge pull request #193 from bogdanni/patch-1

'cmap' - correct stride interpreting CMP,MTYP,PCOL