ladybug: added support for 12 and 16 bit images