Add images-loaded class even on error.