Normalize language names when selecting image

Fixes https://github.com/travis-ci/travis-ci/issues/2708
Merge branch 'ha-bug-capitalized-language-selection' into staging