A wrapper for loading image via XHR and dispatching loading events.