Limit photo selection to images. Fixes #296.

This generally makes the file picker only accept image types. The
backend does additional checks since this cannot be relied upon.