Code for 5000 imgs