bug fix
set timeout to check existence of picture