private function resizeByWidth($originalWidth, $originalHeight, $targetWidth)
    {
        $targetHeight = ($targetWidth * $originalHeight) / $originalWidth;

        return $this->verifySize($originalWidth, $originalHeight, $targetWidth, $targetHeight);
    }