image: fix file attribute