update images and logic