I initially thought it would be too late at the tpl level since the images won't display properly in the tinymce editor, but I added one more remap in iw.cfg like this: /htdocs/=/htdocs/ and it will preivew fine in tinymce and after I stripe the htdocs in the tpl, this remap: /images/=/htodcs/images/ will allow the prieview to work properly.