Fix minimum matplotlib ver and Pillow version check