fix shmem leak with SharedRGBImage