Removed model argument in createthumbs function