Dynamically change images in a frame

Less dumb than before.  Shows a buffered image in a frame.  Reuses the
frame, but updates its components when there's a new image to show.
Also some code to generate images with a coloured line on them.