fix the missing image bug