adds sleep(1) after every 50 photos to prevent Max retries exceeded error