HALO: fix the integer division bug

The newHeight is calculated by an integer division, which leads to an
ugly bug. E.g. a 95x96 image will get a newHeight of 0 because
(95 / 96 * 113) equals to 0. This will lead to a SystemUI FC.

Fix it by multipling first and dividing afterwards.
halo. what else, style changes

Change-Id: I8d82844c45edd3ce5f73bfed875b8df191defe11