For future travelers: BitmapFactory does its own mark/reset calls necessitating this wrapper.