fix for bitmap too large to be uploaded into a texture with 1920 images.