Fix BMP indexing
Merge pull request #33 from pvanhoof/master

Fix BMP indexing