Motion correction working from any folder