release masked image ref