Automatically fit all images to their container.