fix(avatars): integrate the profile images backend

We shouldn't merge this before the dev backend is ready: https://github.com/dannycoates/fxa-dev/issues/24.

Fixes #1556.
Actually we can just use `file.type`, which avoids this possibility and the need for a helper function.