update images and classes