Support files with empty names when pasting image