public bool SaveImage(System.Drawing.Image image, System.Drawing.Imaging.ImageFormat imageFormat, bool hasThumbanil)
        {
            string fileName = Guid.NewGuid().ToString();

            base.SaveImageAs(image, imageFormat, childPath, fileName);
            width  = image.Width;
            height = image.Height;

            if (hasThumbanil)
            {
                string thumbnailPath = GetThumbanilPath(base.Path, base.Extension, "_t");
                ImageThumbnail.MakeThumbnail(image, thumbnailPath, 100, 80, "W");
            }
            return(true);
        }
        public bool SaveImage(string imageFileName)
        {
            FileInfo postedFile = new FileInfo(imageFileName);

            string fileName = Guid.NewGuid().ToString();

            sizes = postedFile.Length;

            Image image = Image.FromStream(postedFile.OpenRead());

            width  = image.Width;
            height = image.Height;

            base.SaveImageAs(image, Util.CommonHelper.GetImageFormat(postedFile.Extension), childPath, fileName);

            string thumbnailPath = GetThumbanilPath(base.Path, base.Extension, "_t");

            ImageThumbnail.MakeThumbnail(image, thumbnailPath, 100, 80, "W");

            return(true);
        }