Sending image to QT not via file, minor bugs fix.