Explicitly defined alignleft and alignright for img elements in css to ensure float and to add 10px margin.