remove packages from image