fix thumbnail upload