adds margin to div for images