Clean up glyph image creation code.