Drive the page to the exact state you want, then capture it framed on your background, with overlays and a crop. From the same script.