 But, if I run your original code as it is with i[0] , then it is only showing "Done Processing" not showing cropped image 