fixed some bugs in css to center pics in the divs