Allowing custom getters for x and y attributes