private function verifySize($originalWidth, $originalHeight, $targetWidth, $targetHeight)
    {
        if ($originalWidth < $targetWidth && $originalHeight < $targetHeight) {
            return array(
                'width' => $originalWidth,
                'height' => $originalHeight,
            );
        }

        return array(
            'width' => $targetWidth,
            'height' => $targetHeight,
        );
    }