Fixes to efficient bitmap loading on real device.