fixing missing image checking