private function getPointInBox(array $imageSize, array $boxSize)
    {
        $width = 0;
        $height = 0;

        list($imageWidth, $imageHeight) = $imageSize;
        list($boxWidth, $boxHeight) = $boxSize;

        if ($imageWidth < $boxWidth) {
            $width = floor(($boxWidth - $imageWidth) / 2);
        }

        if ($imageHeight < $boxHeight) {
            $height = floor(($boxHeight - $imageHeight) / 2);
        }

        return new Point($width, $height);
    }