public static void LoadJpeg(this WriteableBitmap bitmap, Stream sourceStream)
        {
            JpegDecoder decoder = new JpegDecoder();

            var image = new ExtendedImage();

            decoder.Decode(image, sourceStream);

            WP7Utilities.UIThreadInvoke(() => bitmap.SetSource(image.ToStream()));
        }