Updating fill_container(), now without distortion

Now the fill_container() function fullfills the container withou
distortion, cropping the image around container edges. Needs some fix in
the logic but works fine!