Adds .png test images, fixes absolute path in getHTML function, throws exception when php-gd isn't installed