Two ways of shaping, three examples
Image with clip-path
Background-image with clip-path
Shaping a div using transform - skew