Function fill_container() without distortion

Updated the 'fill_container()' to fill the container and crop around
edges. There is no distortion anymore.