image margin cleanup