Generalizes image upload in drag and drop in markdown to all files.