png: check file signature if file is a valid png