fix attempting to draw with recycled bitmaps

Fixes #53