Fixed some issues with photo json responses.