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

Does inputStream need to be closed here given it's being closed in finally block?