styles are now applied to parent divs not to images directly