I haven't kept on on this, but last I knew you would use a browser, take a screen shot, crop it and save/display it.
You can use the COM object to do this with Internet Explorer on Windows. I am unaware of a way using linux but a Google search should help you there. Search for php screen capture