Added 'resolution' attribute, fixed setup.py