improved failover logic for missing images