$options['do not resize'] = 'false';
if (!empty($SC['gd_version'])) {
     $options['resize'] = 'yes';
} else {
     $options['resize using width'] = 'width';
     $options['resize using height'] = 'height';
}