added the image feature for table legend