changed style accordly to the new way of showing the images as background of the div