Fixed problem with UseInternalPNG flag.