Use a hard referrence for the buffered bitmap.

It can happen that there is not enough contiguous memory if we allocate
the buffer all the time. For that reason use a hard reference.