I removed
style.ParagraphFormat.LineSpacing = 15; style.ParagraphFormat.LineSpacingRule = LineSpacingRule.Exactly;
and now the image is aligned properly inside the top margin