CSS component to prevent img from escaping it's parent