Fixed bugs in periodic image capture support.
Refactored Processline into subfunctions
Added inline to command functions.