BfPixelBuffer/BfPixelsWrapper buffer size fixes (rebased onto dev_4_4)



This is the same as gh-673 but rebased onto dev_4_4.

----

Should resolve tickets #10189 and #10202 (i.e. projection issues).