Some more rudimentary definitions
Correct top-left offset calculation