public static function normalize(array $config)
    {
        $config['mime_types'] = (array)$config['mime_types'];
        $config['cropper_enabled'] = (bool)$config['cropper_enabled'];
        $config['max_file_size'] = (int)$config['max_file_size'];
        $config['max_height'] = (int)$config['max_height'];
        $config['max_width'] = (int)$config['max_width'];
        $config['min_height'] = (int)$config['min_height'];
        $config['min_width'] = (int)$config['min_width'];
        $config['cropper_coordinates'] = array_map('intval', $config['cropper_coordinates']);

        return $config;
    }