in reply to Error in icon

What happens if you use Tk::JPEG and format => 'JPEG' instead?