Make your header a single image – the top part including the rounded corners.
No need to cut it up so much.
The main portion should be a horizontal strip that is from the very left edge (including shadows) to the very right edge (including shadows), then you repeat this vertically.
Here’s an example from a site I created some years ago.
The image is just a strip of the layout.