do not use ctx->current_pps in motion.cc
remove references to ctx->img from transform.cc