moved image loading to separate method
added more onclick events