I see the WTF. You should be writing out the image to a MemoryStream in PNG format instead of using a WritableBitmap.