private static void SaveCategoryOrSourceImages(string type, string id, Dictionary<string, string> images)
{
var bs = BlobStorage.MakeDefaultBlobStorage();
var template = BlobStorage.GetAzureBlobAsString("admin", "image_selector.tmpl");
var sb = new StringBuilder();
Random rnd = new Random();
sb.Append(RenderCategoryOrSourceImages(type, images, rnd));
var html = template.Replace("__ID__", id);
html = html.Replace("__HOST__", ElmcityUtils.Configurator.appdomain);
html = html.Replace("__TYPE__", type);
html = html.Replace("__BODY__", sb.ToString());
//File.WriteAllText(@"c:\users\jon\dev\" + type + "_images_" + id + ".html", html);
bs.PutBlob(id, type + "_images.html", html, "text/html");
}