fixed issue where profile image not persisting