fix bitmap printing in the teaching languages

closes PR 14049