Add support for multiple DPI images, fixes #541.
Add "filters" parameter for file dialogs.
mac: Implement the filters option.