Gallery2: If the decoding fails, change the inSampleSize to 1

Issue: Decoding an image whose inSampleSize is greater
than image width/height returns a invalid bitmap width,
height and config value
Fix: If decoding fails for an image whose inSampleSize
is greater than image width/height; decode the imagewith
inSampleSize=1

Change-Id: I69657bf7e0643a11f63206dea4872c2b0a057c87