Graphical output of images for Qt4