add optional camera index param to core.capture