add optional support to import png files

Not supported on Android.