Remove use of Math.round() for offset and position pixel values

This is just asking for off-by-one clipping errors.

Change-Id: Iaab604e12155e0637695cf0d0846da9e69d96e35