added png handling support