Fixed DPI issues in BitmapBuffer class