Normalize language names when selecting image

Fixes https://github.com/travis-ci/travis-ci/issues/2708