Refactor _image module without CXX

- Did not touch the internal class Image.
- lib/matplotlib/mlab.py: Add safeguard when accessing np.object_,
  since it doesn't currently exist in PyPy.