fixed display issues caused by using the wrong width and height values