OpenLayers.Layer.getPreview() function.
Add a getPreview() function to OpenLayers.Layer to get a preview Image of the layer (WMTS, WMS, XYZ).
Layer: