fixed log out and image probs