Compatibility with old versions of Qt/PyQt.

- The method setPlaceholderText() does not exist in QLineEdit.
- The constructor of QRegExpValidator needs a parent object.

Closes #57.
Remove some pygame-related code in imageproc that should not be there.