apply codec profile conditions
Image language fix

The language only needs to be added if it is not already part of the
list. It is not necessarily a problem, it just winds up with duplicates.
Merge remote-tracking branch 'upstream/master'