Revert "don't break imageupload if full path used for filename"

This reverts commit d1b31c208f0c3936005ae8f68cb19e13afb835dc.