added instance vars for metadata and png legend