ArcGIS API for JavaScript: Test/raster_copy_map_image (MapServer)
Built using the ArcGIS API for JavaScript