fixed refreshing images all the time