changed img to optimize cmd