log in bugs fixed, and remove image function added