storing chart images in an array