constructor(x, y, scope = globalScope, rows = 15, cols = 20, imageUrl='') {
        super(x, y, scope, 'RIGHT', 1);
        this.directionFixed = true;
        this.fixedBitWidth = true;
        this.imageUrl = imageUrl;
        this.cols = cols || parseInt(prompt('Enter cols:'), 10);
        this.rows = rows || parseInt(prompt('Enter rows:'), 10);
        this.setSize();
        this.loadImage();
    }
@class
Image
@extends CircuitElement
@param {number} x - x coordinate of element.
@param {number} y - y coordinate of element.
@param {Scope=} scope - Cirucit on which element is drawn
@param {number=} rows - number of rows
@param {number=} cols - number of columns.
@category modules