Add gc support for image