Updated to work with QPixmap instead of PIL!

The original source is licensed under a BSD-License, so it should be fine to use.