Photo scale resize tool write using Qt