notebook for saving matplotlib figures to image arrays