Updated factory to handle ajax call within angular
Removed JQuery dependency
Added retrieved image to DOM