fixed photo displaying, adjusted endpoints, cleaned up error catching