fixed refreshImages some more