change image dir into user's home dir