function buildImageUrl(type, color, modifier) {
var color_title = color.title.charAt(0).toUpperCase() + color.title.slice(1).toLowerCase();
var old = $('input[name=heromantor-widget-model]').first().prop('checked');
var last = $('input[name=heromantor-widget-model]').last().prop('checked');
var prefix = (type != 'case' || old) ? 'v1' : (last ? 'v3' : 'v2');
return remote_url + '/new-img/' + prefix + '/' + color_title + '/' + type + '_' + color.group.title.toLowerCase() + '_' + color_title + '.jpg';
}
var old = $('input[name=heromantor-widget-model]').first().prop('checked');
var last = $('input[name=heromantor-widget-model]').last().prop('checked');
var name = old ? 'productAir2' : (last ? 'productAir3w' : 'productAir2w');