You might try the
Image::Grab
module, which was suggested by merlyn in
this thread. If you plan to use this
as a way to get site content and avoid advertisements,
keep in mind that some sites may not appreciate that.
You might want to read Yohimbe's comments in the same
thread. I think it's come up another time as well, but
I can't remember any keywords for it.