Removed unnecessary offsetY reference