fix images by plotting directly to png() rather than copying to it.