Fixed typo in the thumbnail saving code