change the condition that stop downliad picture