Resolution 1px bug, added Math.round to fix this