offsetY and offsetX are now parsed as integers to protect against accidentally using a string