re-added image listing code