fixed sprite offset to be dimension independent