fixed logout and image error