new helper function for .png extension, re #8482