Fixed mistake of not saving to png file.