Fix remove-old-images to not remove dependencies, add --dry-run option