remove all remaining references to ctx->img from motion.cc