fix refcount in SharedRGBImage