cleanup AWT buffered image generation for legends
cleanup legends