adding login and images scripts, with little graph modifications