added image functions, setInterval for loops and buttons