Automated translation of text within generated images