tinymce pattern link/image upload fixes