Fix BitmapFactory inSampleSize logic

Fix rounding error that can result in an incorrect inSampleSize, causing the decoded bitmap to be smaller than the requested size.