The call to getAttribute fails if the image is not a jquery object, changed in favor of $.attr
Merge pull request #42 from eallegretta/master

 The call to getAttribute fails if the image is not a jquery object, changed in favor of $.attr