correct boolean logic used to decide whether or not to refresh image