fix path issue in FileField and IMageField