update images and hash array