rename disableDeviceResize to smartSize, and move into the bitmap builder.