Added support for prescaling of bitmaps.