Fixes image upload symlinks

Fixes issue #280