shadow: add support for older bitmap codecs