Scale images to parent element.