Added rudimentary support for 24- and 32-bit bitmaps.