Convert image to black&white using python