This could potentially go in a cron job, but I may want to figure out a good method of clearing out unused base images before implementing this.