Attempt at fixing occasional crashes after loading too many bitmaps.