Validate winner and loser IDs against image files

Previously, the submitted winner and loser values were written to the
file as-is. With this commit the system will confirm that images by
those names do exist, and otherwise abort saving the submission.