editor: bug fix: invalid path when uploading images