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.
Merge pull request #918 from ahinz/fix/296/limit-to-images

Limit photo selection to images. Fixes #296.