Return false only when file read fails

In the createThumb function, when calling imagecreatefromjpeg the if checks for true instead of false.