Chnages on controllers.js...added factory
Changes on controllers.js - added a factory -- Utils.isImage()