class Image extends Widget {

	constructor(src, parent, page, dimension){
		super(parent, page, dimension);
		this.setSource(src);
	}

	createElement(){
		let elm = document.createElement("img");

		return elm;
	}

	setSource(src){
		if(Validator.validateType(src, "string")){
			this.element.src = src;
		}

	}

}