case width < height:
        new := AddBackgroundColor(image.NewRGBA(image.Rect(0, 0, height, height)), bgcolor)
        draw.Draw(new, new.Bounds(), src, image.Point{
            X: src.Bounds().Min.X + ((width - height) / 2),
            Y: src.Bounds().Min.Y}, draw.Over)