Improved modeling of in-ice particle showers for IceCube event reconstruction