The reason the bitmap didn't showed up was apperently because how the data was passed.
It was passed from the function
ImageDataFactory.CreateRawImage(bytes)
and it should be done by
ImageDataFactory.Create(bytes)
as it is done in the example from the Part IV in the comment from @André Lemos