Made width and height variable programmatically