decodeFromImageElement(source) {
			if (!source) {
				throw new ArgumentException('An image element must be provided.');
			}
			this.reset();
			const element = this.prepareImageElement(source);
			this.imageElement = element;
			let task;
			if (this.isImageLoaded(element)) {
				task = this.decodeOnce(element, false, true);
			}
			else {
				task = this._decodeOnLoadImage(element);
			}
			return task;
		}
Decodes something from an image HTML element.