removed some global vars to speed up imagesave
fixed yellow bg for char images
removed some global vars from display