Fix Bitmap reference count (fixes #25)