Resize image with mouse QTextEdit