Adds .png test images, fixes absolute path in getHTML function, throws e...

Fixes some bugs I encountered when I tried to run the examples on a fresh VM.
I know, I should have made 3 different pull requests. My bad.

- Adds .png test images
- Returns a relative path instead of an absolute one in getHTML
- Throws exception when php-gd isn't installed