added fileName parameter to getPNGPath function