Replaced offset_y calculation with actual geometry rather than the 1.75 approximation