Fixed error java.lang.OutOfMemoryError

Fixed error java.lang.OutOfMemoryError when the function updateBitmap() was called.
Merge pull request #204 from tato469/patch-1

Fixed error java.lang.OutOfMemoryError