Catch OOM when opening bitmap.