Just have to work out how to do product images as this didn't work.
PHP Code:
// WCM - CDN Images
if (($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/path/to/images//','http://collectables.collectablesreta.netdna-cdn.com/',$image_path);
return str_replace('$http_location','',$image_path);
}
// / WCM - CDN Images