genImg: generate image for display, and related adjust