use BitmapRegionDecoder for SDK > 10
Merge branch 'optimize-memory-squaretask'