timob-16508: Scale bitmap if too large to load into texture.