i have written a python script its works fine on one image(monkey) but i try to use another image(lion) it shows TypeError: \'int\' object is not subscriptable<