Image Processing In Python Code For Snake