guess for the view icon, you could supply a pop-out window and then have the script generate it to the resolution of the pop-out.
guess if you want, do you want to add firki code to allow scripts to generate ANSI art? within profiles, it would just have to max out at a certain resolution.