Please make the image shorter, with <a href=\"http://domain.com/image.jpg\"> <img src=\"http://domain.com/image.jpg\" width=\"x\" height=\"x\" border=\"0\"> to don`t stretch the hawkees design.
About the script, its ok, but i would use different techniques.