tweaked image upload so that files in draft area are overwritten
when autosaving