install: extract "list old images" -functionality to a separate script