Introduce a direct way to obtain a bitmap from a PXImagePaint.

Yes, the reference is re-assigned on the next line.