fix file path for thumbnail saving