First, you can use LWP :: Simple to extract the image and save it to disk.
Subsequently, the simplest thing in Windows is to do
system("C:\\imagepath\\foo.jpg");
which displays the image in the default application, which is used to display it.
In OS X you can do
system("open ~/imagepath/foo.jpg");
In freedesktop.org compatible systems you can do
system("xdg-open ~/imagepath/foo.jpg");
This is due to switching between the command line application and the designated OS to view the image. If you want it to be more seamless, you can use the Perl GUI library and create a window with a loaded image
source share