fix crash in SharedRGBImage code path. The video is not rendered properly though.