fix build img error