modified insert a href option to include both local and online image sources