fix imagemagic preview for webdav