Fix compilation of image.cpp on Windows by using QDir instead of mkdir.