Improve captureImage format support. [1660]

Vector formats and KML should now work as expected.