Fix 'createScreenshot' creating skewed thumbnail

In potrait mode (height > width) logic to calculate source rect
height was incorrect. Instead of using h = w * aspect ratio, the
correct equation is h = w * (1/aspect ratio). Due to incorrect
equation source aspect ratio was different than that of dest
thumnail hence causing thumbnail image to be skewed. Fixed issue
by inversing the aspect ratio when calculating height.

Change-Id: Iff65d9c56f3c38119712b01cdd18ce77f52e7323
1 file changed