dispatching error event on image loading error
imports reorganized
clearing image method added
Merge branch 'image_fixes'

* image_fixes:
  clearing image method added
  imports reorganized
  dispatching error event on image loading error