Added click event to figure img