private bool ValidateImage(Image image)
        {
            bool isValid = image.Valid;

            if (!isValid)
            {
                System.IO.Stream     imageFile = ImageStorage.GetImageFromBlob(image.Id);
                System.Drawing.Image img       = System.Drawing.Image.FromStream(imageFile);
                if (img.RawFormat.Guid == System.Drawing.Imaging.ImageFormat.Jpeg.Guid)
                {
                    isValid = true;
                }
            }

            return(isValid);
        }
        private bool ValidateImage(Image image)
        {
            bool isValid = image.Validated;
            CloudBlockBlob blob = ImageStorage.returnBlob(reference);
            if (!isValid)
            {
                System.IO.Stream imageFile = ImageStorage.GetImageFromBlob(image.Id);
                System.Drawing.Image img = System.Drawing.Image.FromStream(imageFile);
                if (img.RawFormat.Guid == System.Drawing.Imaging.ImageFormat.Jpeg.Guid && (blob.Properties.Length < 3000000) )
                {
                    isValid = true;
                }

            }

            return isValid;
        }