fix migrate to upload image and avatar