Searches for a working PNG device. On Unix, the png device requires that X11 is available, which it is not
 when running batch scripts or running Rremotely.  In such cases, an
 alternative is to use the bitmap() device, which generates an
 EPS file and the uses Ghostscript to transform it to a PNG file.
 Moreover, if identical looking bitmap and vector graphics (EPS) files
 are wanted for the same figures, in practice, bitmap() has
 to be used.
 By default, this method tests a list of potential graphical devices and
 returns the first that successfully creates an image file.
 By default, it tries to create a PNG image file via the built-in
 png() device.