fixes #39 and fixes namespace conflic in getImages function between angular app and wysiwyg