Added fit to container function
Release v1.2.24