added image optimization pipeline