Add id labels to media boxes to make testing easier

This is needed for capybara testing, so we can work out which of the 9 boxes is the one we want.