A few more functions for creating bitmaps programatically.