Fix marging for detail image