update content image margins