New Image class with refcount