Try to be better with memory when reading bitmaps