Thumbnail fallback now points to the correct image

Thumbnails that fall back to the full size image now have the correct
<img /> tags generated.
Fixed SQL error 1005 install bug

Patched install script to use default engine and AUTO_INCREMENT settings
Merge pull request #1 from bwcorey/master

Thumbnail & install fixes