Image on top of border?

Is there a way to place an image on top of a CSS border? Either as an HTML image tag ( <img> ) or using background-image in CSS. Or do borders always have to display as the highest element on the page?