added click
added image click
added css file
changed else if
updated image index
added functions