modified to use half-size bitmap on OutOfMemory
Merge pull request #3 from mhama/master

use half-size bitmap on OutOfMemory error