Use BitmapFactory width/height for an image

There can be some images which don't have Exif. Extract width/height
from Exif. Otherwise fallback to extract them from BitmapFactory.

Bug: 166303982
Test: atest MediaProviderTests
Change-Id: Ic2aabbefb7caa7475a8923302ccefce58f877948
(cherry picked from commit 6c008bb998c904f7db616ffd623656755d32e74c)
3 files changed