make margin auto center and add to image