Function to center a rect on a point