Updated css to recognize images as well as divs