Creating thumbnails bug fix