automatically refresh photos