Add 5 minute timeout when downloading photos; Stop downloading when we reach the last page of photos
Set interval before returning from onPreferenceChange so the new preference can be used
Check network response code and exit if there are too many failures