double check field value before generating thumbnails, fixed #160