Filled in bitmaps.py. Not tested.