added camera id parameter, fixed motion vectors