Make BMP decoder use bytestream. Patch by Michel Bardiaux