fix for Android 2.3.3 - using view/bitmap size instead of canvas