inline RenderPageToBitmap. resolves #2