fix PNG compatibility