fixed voting so that a user can only vote once per image