Configure draw interaction with a vector source instead of a layer

This would make it work with both a vector layer and an image layer with a vector image source.