Added setup.py
Added auto-detection of image size through PIL/Pillow
minor edits