Custom Code for photo voting