Use the new BitmapFactory.Options functionality in the sample