Correcting directory structure for images.