fixed a leak in SharedRGBImage
merge