Return false only when file read fails

In the createThumb function, when calling imagecreatefromjpeg the if checks for true instead of false.
Merge pull request #2 from uda/master

Return false only when file read fails