added choice of css width and height unit