re-arranged repository so that pipi install could work with a git url.

also added to setup.py to build png and gd if they are not there.