FirstDay waiting for image algorithm