Thumbnails now working. Fixed problem where extensions weren't being recorded properly