fix matplotlib memory leak and include images