Use Math.ceil instead of Math.round because the small gaps between pixels sometimes become apparent on Chrome after doing the Math.round. See issue #456