optimizing images again
gives wrong id tag