optimizing images, adding original dir