Added bind to image load event so that the directive waits for the image...

Added so that the directive waits for the image to load before changing the values. Fixed a lot of errors i was having when changing the image through angular.

Also added check for ng-src element if src element fails.