Updated diagram with svg and scaling mechanism