Voting functionality on click of a picture