fixed bug with photo uploads.

getting ready for v1