public static function getResponsiveWidthStep($width, $widths)
    {
        foreach ($widths as $cachedWidth) {
            if ($width <= $cachedWidth) {
                return $cachedWidth;
            }
        }
        return end($widths);
    }