voting and deleting photos implemented