Fixed for loops edges
Changed output img to 2.jpg
Task 3