Add hit detection to image-vector-layer example
Better typing