added: random value to imgrefresh, autorefresh funciton