Add Content-Type to photo uploads & add tests.

This should address issue #50.