Woot, all the effort to make it so you can manipulate the image buffer with an image off disk works! Try out the motion_detection script.