checking for 0 width and height