fixed the aligning all images in a line issue