clickAnim takes now two arguments, the second one is an boolean value that indicates the set of images makes a repeated animation or not