Setup margin and default margin for images