Logged In: YES
user_id=648883
Originator: NO

You can run khtml2png in a virtual X server, so you wont get bothered by popping up windows.

Maybe http://sourceforge.net/projects/khtmld/ is what you are searching for.