Update image margins