crash fix when reading a Bitmap requires too much memory
Merge pull request #360 from robUx4/oom_crash_fix

Crash fix when reading a Bitmap requires too much memory