png-save: change input from string to path param