Adding png support to GDAdapter.