Only allow image responses for repositories

Should turn a bunch of 500 errors that I see in Sentry into 406 errors instead.