added png loading on the C side