Feature 1675: Better default for file selection dialog for texture image

By default, use the path of the currently open file. If the file is still new, default to the user's home directory.

This fix is not specific to the file selection dialog for the texture image, but should work for all file dialogs opened from the property table.

Testing done: Compiles, runs and handles the cases mentioned above.