public void ProcessRequest(HttpContext context) { if (this.ImageGuid == new Guid() || ImageExtension == null) { return; } context.Response.ContentType = string.Format("image/{0}", ImageExtension.ToUpperInvariant()); WriteImage(context); }