Revert "Fixed support for BMP"

This reverts commit 024fb360f330aa17454d254869f75cb21b580bb1.