Fix typos; use PIL to load images rather than scipy.misc