Fix the off by 0.5 pixels unit test failure issue on FF