Horizontal And Vertical Projection Of Image Python