Made width and height parameters of the script.